<script setup lang="ts">
import { useUserStore } from "@/stores/user";
const userStore = useUserStore();
</script>

<template>
    <div class="header">
        <div class="left">
            <img src="/logo.jpg" alt="" />
            <span>{{ userStore.username }}的logo</span>
        </div>
        <div class="middle"></div>
        <div class="right">
            <img src="/logo.jpg" alt="" />
            <span>{{ userStore.username }}</span>
        </div>
    </div>
</template>

<style scoped>
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgb(229, 230, 235);
    padding: 8px;
    height: 60px;
}
.header > .left {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header > .left > img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 20px;
}
.header > .left > span {
    font-weight: bolder;
    font-size: 20px;
}
.header > .right {
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header > .right > span {
    font-weight: bolder;
}
.header > .right > img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 20px;
}
</style>
